<div class="zs-body" data-ng-init="formInit('gzreceivefile', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzreceivefile');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">行政管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">收文管理</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzreceivefile') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzreceivefile', gzreceivefile.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzreceivefile')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="ID" ng-model="gzreceivefile.queryObject['id']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="发文ID" ng-model="gzreceivefile.queryObject['fwid']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="接收人ID" ng-model="gzreceivefile.queryObject['jsrid']"/>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="接收人名称" ng-model="gzreceivefile.queryObject['jsrmc']"/>
                </span>
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="是否已读" ng-model="gzreceivefile.queryObject['sfyd']"/>
                </span>
				<span class="search-warpper">
                    <ag-Datebox id='qi_ydsj'  showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gzreceivefile.queryObject['ydsj']" >
				   	</ag-Datebox>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="是否已确认" ng-model="gzreceivefile.queryObject['sfqr']"/>
                </span>-->
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('gzreceivefile')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzreceivefile','allCheckbox');" />
                                    </th>
									<!--<th>ID</th>
									<th>发文ID</th>
									<th>接收人ID</th>-->
									<th>接收人名称</th>
									<th>是否已读</th>
									<th>阅读时间</th>
									<th>是否已确认</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzreceivefile.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzreceivefile',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  ID -->
            						<!--<td>
                                        <a ng-click="editRow('gzreceivefile',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>
									<!--  发文ID -->
            						<!--<td>
                                        <a ng-click="editRow('gzreceivefile',r) && openWindow('edit');">
                                            <label ng-bind="r.fwid"></label>
                                        </a>
                                   </td>-->
									<!--  接收人ID -->
            				<!--		<td>
                                        <a ng-click="editRow('gzreceivefile',r) && openWindow('edit');">
                                            <label ng-bind="r.jsrid"></label>
                                        </a>
                                   </td>-->
									<!--  接收人名称 -->
            						<td>
                                        <a ng-click="editRow('gzreceivefile',r) && openWindow('edit');">
                                            <label ng-bind="r.jsrmc"></label>
                                        </a>
                                   </td>
									<!--  是否已读 -->
            						<td>
                                        <a ng-click="editRow('gzreceivefile',r) && openWindow('edit');">
                                            <label ng-bind="r.sfydName"></label>
                                        </a>
                                   </td>
									<!--  阅读时间 -->
								   <td>
                                        <a ng-click="editRow('gzreceivefile',r) && openWindow('edit');">
                                            <label ng-bind="r.ydsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  是否已确认 -->
            						<td>
                                        <a ng-click="editRow('gzreceivefile',r) && openWindow('edit');">
                                            <label ng-bind="r.sfqrName"></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzreceivefile'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="收文管理编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<!--<tr>
                                <td class="text" width="20%">ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzreceivefile.editRow.id" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">发文ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzreceivefile.editRow.fwid" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">接收人ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzreceivefile.editRow.jsrid" class="zs-input" />
                                </td>
                            </tr>-->
          					<tr>
                                <td class="text" width="20%">接收人名称</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzreceivefile.editRow.jsrmc" class="zs-input" />
                                </td>
                           
                                <td class="text" width="20%">是否已读</td>
                                <td class="left" width="30%">
                                	<ag-Combobox style="width:175px;height:28px;"
                                        para="{	uDictionary:true,
                                        		dictionary:'p_yesorno'}"
                                        ng-model="gzreceivefile.editRow.sfyd"
                                        text-Value="gzreceivefile.editRow.sfydName" />
                                	<!--<input type="text" ng-model="gzreceivefile.editRow.sfyd" class="zs-input" />-->
                                </td>
                            </tr>
						   <tr>
                                <td class="text" width="20%">阅读时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_ydsj'  showcurday='gzreceivefile.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzreceivefile.editRow.ydsj" >
							   		</ag-Datebox>
                                </td>
                                <td class="text" width="20%">是否已确认</td>
                                <td class="left" width="30%">
                                	<ag-Combobox style="width:175px;height:28px;"
                                        para="{	uDictionary:true,
                                        		dictionary:'p_yesorno'}"
                                        ng-model="gzreceivefile.editRow.sfqr"
                                        text-Value="gzreceivefile.editRow.sfqrName" />
                                	<!--<input type="text" ng-model="gzreceivefile.editRow.sfqr" class="zs-input" />-->
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzreceivefile', gzreceivefile.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>